package com.yunhai.model.entity.ums;

import com.baomidou.mybatisplus.annotation.*;
import com.yunhai.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@ApiModel(value = "UmsRole", description = "角色实体")
@TableName("ums_role")
@Data
@Accessors(chain = true)
public class UmsRole extends BaseEntity {
    @ApiModelProperty(value = "角色ID", example = "10001")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "角色名称", example = "系统管理员")
    private String name;

    @ApiModelProperty(value = "角色权限字符串", required = true, example = "admin")
    private String roleKey;

    @ApiModelProperty(value = "角色状态（0正常 1停用）", example = "0")
    private String status;

    @ApiModelProperty(value = "备注信息", example = "系统最高权限角色")
    private String remark;

    @TableField( exist = false )
    private List<Long> permissionIdList = new ArrayList();
}
